package com.yirui.bridge.config;

import com.yirui.bridge.core.ServerManager;
import com.yirui.bridge.tcp.NettyTcpClient;
import com.yirui.bridge.tcp.TcpChannelInboundHandler;
import com.yirui.bridge.tcp.TcpChannelInitializer;
import io.netty.channel.nio.NioEventLoopGroup;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author Dujie
 * @create 2021/11/3
 * @since 1.0.0
 */
@Configuration
@Slf4j
public class ManagerConfig {

    @Bean(destroyMethod = "stop")
    public ServerManager serverManager(){
        ServerManager manager = new ServerManager();
        return manager;
    }


}
